<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<%
// String lang = org.jeecgframework.core.util.BrowserUtils.getBrowserLanguage(request);
String groupId = request.getParameter("groupId");
// session.setAttribute("lang", lang);
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link href="plug-in/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="plug-in/umeditor/third-party/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="plug-in/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="plug-in/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="plug-in/umeditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="plug-in/lhgDialog/lhgdialog.min.js?skin=metrole"></script>
<script type="text/javascript" src="js/common.js"></script>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/style_1_common.css">
<link rel="stylesheet" href="css/umeditor_css.css">

<title>版块信息</title>
</head>
<!--头部 -->
<%@include file="head.jsp"%>  

<div style="width: 100%; height: auto; background: #f8f8f8; padding-bottom: 10px;">
	<div style="width: 960px; margin: 0 auto; color: #666; padding-top: 10px; padding-bottom: 10px">
		<img style="vertical-align: sub" src="imges/fangzi.png"> > <span><a href="<%=request.getContextPath() + "/indexController.do?index"%>">论坛</a>><a
				href="#">${articleGroupInfo.areaName}</a>><a href="#">${articleGroupInfo.articleGroupName}</a></span>
	</div>
	<div class="xsyj_top">
		<div class="xsyj_top_l">
			<span style="margin-left: 10px">【${articleGroupInfo.articleGroupName}】</span>
		</div>
		<div class="xsyj_top_r">
			<span>今日 ： </span> <span style="color: #f1000c">37 <img style="vertical-align: sub" src="imges/qunzu/fall.png"></span> <span
				style="color: #959595">|</span> <span>主题 ： </span> <span style="color: #f1000c">${themeNum}</span> <span style="color: #959595">|</span>
			<span>排名 ： </span> <span style="color: #f1000c">${articleGroupInfo.ranking}</span><img style="vertical-align: sub; margin-right: 20px"
				src="imges/qunzu/fall1.png">
		</div>
	</div>
	<div class="xsyj_top_bottom">
		<div class="xsyj_top_bottom1">
			<div class="xsyj_top_bottom1_title">
				<span style="color: #006fcc">版主：</span>
			</div>
			<div class="xsyj_top_bottom1_title1">
				<font> <span>${articleGroupInfo.articleGroupManage}</span>
				</font>
			</div>
			<div style="clear: both"></div>
		</div>
		<div class="xsyj_top_bottom1_title2">${articleGroupInfo.remark}</div>
		<div class="xsyj_top_bottom3">
			<span class="xsyj_y"> <a href="" class="fa_fav">
					收藏本版 <strong class="xi1" id="number_favorite">(<span>${articleGroupInfo.collectNum}</span>)
					</strong>
				</a> <span class="pipesd">|</span> <a href="" class="fa_rss" title="RSS">订阅</a> <span class="pipesd">|</span> <a href="" class="fa_achv">存档</a></span>
		</div>
	</div>

	<div class="xsyj_list">
		<div class="xsyj_list_l">
			<ul>
				<li><a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>">全部</a></li>
				<c:forEach items="${themeList}" var="themelist">
					<li><a href="frontGroupInfoController.do?groupInfo&groupId=${themelist.groupId}&themeId=${themelist.id}">${themelist.themeName}</a></li>
				</c:forEach>
			</ul>
		</div>
		<div class="xsyj_list_r">
<!-- 			<img src="imges/qunzu/up.png"> <span><a style="color: #006fcc" href="">收起</a></span> -->
		</div>
		<div style="clear: both"></div>
	</div>
	
	<!-- 》》》》》》》》》》》》》》》》》》》 分  页 《《《《《《《《《《《《《《《《《《《《《《《《《  -->
	<div class="pgt" style="margin-top: 10px;">
		<div class="pgt_img">
			<img src="imges/fatie.jpg">
		</div>
		<div class="pg">
			<tfoot>	<!-- 分页 -->
				<tr>
					<td colspan="4" class="align_c">
						<div class="_page">
							<%
								int pageNo = 0, bfNo = 0;
								String pageNoStr = request.getParameter("page");
								if (StringUtil.isEmpty(pageNoStr) || "1".equals(pageNoStr)) {
									pageNo = 1;
									bfNo = 1;
								} else {
									pageNo = Integer.parseInt(pageNoStr);
									bfNo = pageNo - 1;
								}
								String annCount = request.getAttribute("pageCount").toString();
								int P_pageCount = Integer.parseInt(annCount);
							%>
							<span id="info">共${pageCount }页|第<%=pageNo%>页
							</span>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=1">首页</a>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=bfNo%>">上一页</a>
							<%
								int showPages = 6;//显示10页
								if (showPages >= P_pageCount) {
									for (int i = 0; i < P_pageCount; i++) {
							%>
							<a class="<%=pageNo == (i + 1) ? "current" : ""%>" href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=(i + 1)%>"><%=(i + 1)%></a>
							<%
								}
								} else {
									int pindex = 0;
									if (pageNo > (showPages / 2))
										pindex = pageNo - (showPages / 2);
									if ((pageNo > P_pageCount - (showPages / 2)) && (pageNo <= P_pageCount))
										pindex = P_pageCount - showPages;
									for (int i = pindex; i < showPages + pindex; i++) {
							%>
							<a class="<%=pageNo == (i + 1) ? "current" : ""%>" href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=(i + 1)%>"><%=(i + 1)%></a> 
							<%
								}
								}
							%>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=(pageNo + 1)%>">下一页</a>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=P_pageCount%>">尾页</a>
						</div>
					</td>
				</tr>
			</tfoot>
		</div>
	</div>


	<div class="xsyj_zhuti">	
		<div class="xsyj_zhuti_l">
			<ul class="quanbuzhuyi1">
				<li>全部主题</li>
				<li>投票</li>
				<li>悬赏</li>
				<li>辩论</li>
				<li>|</li>
				<li>最新</li>
				<li>热门</li>
				<li>热帖</li>
				<li>精华</li>
				<li>更多>></li>
			</ul>
		</div>
		<div class="xsyj_zhuti_r">
			<ul class="quanbuzhuyi2">
				<li style="color: #006fcc">
					<img style="vertical-align: middle" src="imges/qunzu/kuang.png"> 新窗
				</li>
				<li>回复</li>
				<li>查看</li>
			</ul>
		</div>
	</div>
	<!-- 》》》》》》》》》》》》》》》》》》》》》	置顶的文章	《《《《《《《《《《《《《《《《《《《《《《 -->
	
	<div class="bankuaizhuti">
		<span style="margin-left: 15px">版块主题</span>
	</div>
	<div class="xsyj_concent">
		<table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
			<tbody id="concent_1">
			
			
			<c:forEach items="${articleList}" var="articleList">
			
			<c:if test="${articleList.is_up == 'Y'}"> <!-- 置顶的帖子 -->
<%-- 				<c:forEach items="${bnsArticleZdList}" var="zdArticleList"> --%>

					<tr>
						<td class="icn">
							<img src="imges/qunzu/up_blue.png">
						</td>
						<th class="lock"><span class="lock1"><a href="frontArticleInfoController.do?articleInfoList&Id=${articleList.id}">${articleList.title}</a></span>
							<p class="lock_p">  
								<span class="lock2">作者：${articleList.create_name} ${articleList.create_date}</span> 
								<!-- 
								${articleList.integral} ${articleList.experience}  根据积分或者经验显示发表让等级图片
								 -->
								<span class="lock3">最后发表：${articleList.lastreply_name}<img src="imges/qunzu/v2.png"> ${articleList.lastreply_ctime}
								</span>
							</p></th>
						<td class="xinchuang">×</td>
						<td class="huifu">
							<img src="imges/huifu.jpg"> ${articleList.comments_num}
						</td>
						<td class="chakan">
							<img src="imges/qunzu/2.png"> ${articleList.browse_num}
						</td>
					</tr>
					
<%-- 				</c:forEach> --%>
			</c:if>
			
			<!-- 没有置顶的 -->
			<c:if test="${articleList.is_up != 'Y'}">
				<tr>
					<td class="icn">
						<img src="imges/qunzu/1.png">
					</td>
					<th class="lock"><span class="lock0"><a href="frontArticleInfoController.do?articleInfoList&Id=${articleList.id}">${articleList.title}</a> <span style="color: #ff6600"></span></span>
						<p class="lock_p">
							<span class="lock2">作者：${articleList.create_name} ${articleList.create_date}</span> 
							<span class="lock3">最后发表：${articleList.lastreply_name}<img src="imges/qunzu/v2.png"> ${articleList.lastreply_ctime}
							</span>
						</p></th>
					<td class="xinchuang"></td>
					<td class="huifu">
						<img src="imges/huifu.jpg"> ${articleList.comments_num}
					</td>
					<td class="chakan">
						<img src="imges/qunzu/2.png"> ${articleList.browse_num}
					</td>
				</tr>
			</c:if>
			
			</c:forEach>
			</tbody>
		</table>
	</div>

	<div class="pgt" style="margin-top: 10px">
		<div class="pgt_img">
			<img src="imges/fatie.jpg">
		</div>
		<div class="pg">
			<tfoot>	<!-- 分页 -->
				<tr>
					<td colspan="4" class="align_c">
						<div class="_page">
							<%
// 								int pageNo = 0, bfNo = 0;
// 								String groupId = request.getParameter("groupId");
// 								String pageNoStr = request.getParameter("page");
								if (StringUtil.isEmpty(pageNoStr) || "1".equals(pageNoStr)) {
									pageNo = 1;
									bfNo = 1;
								} else {
									pageNo = Integer.parseInt(pageNoStr);
									bfNo = pageNo - 1;
								}
// 								String annCount = request.getAttribute("pageCount").toString();
// 								int P_pageCount = Integer.parseInt(annCount);
							%>
							<span id="info">共${pageCount }页|第<%=pageNo%>页
							</span>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=1">首页</a>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=bfNo%>">上一页</a>
							<%
// 								int showPages = 6;//显示10页
								if (showPages >= P_pageCount) {
									for (int i = 0; i < P_pageCount; i++) {
							%>
							<a class="<%=pageNo == (i + 1) ? "current" : ""%>" href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=(i + 1)%>"><%=(i + 1)%></a>
							<%
								}
								} else {
									int pindex = 0;
									if (pageNo > (showPages / 2))
										pindex = pageNo - (showPages / 2);
									if ((pageNo > P_pageCount - (showPages / 2)) && (pageNo <= P_pageCount))
										pindex = P_pageCount - showPages;
									for (int i = pindex; i < showPages + pindex; i++) {
							%>
							<a class="<%=pageNo == (i + 1) ? "current" : ""%>" href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=(i + 1)%>"><%=(i + 1)%></a> 
							<%
								}
								}
							%>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=(pageNo + 1)%>">下一页</a>
							<a href="frontGroupInfoController.do?groupInfo&groupId=<%=groupId%>&page=<%=P_pageCount%>">尾页</a>
						</div>
					</td>
				</tr>
			</tfoot>
		</div>
	</div>


	<link rel="stylesheet" href="css/style_1_common.css">
	<div id="f_pst" class="bm" style="width: 960px; margin: 0 auto;">
		<div class="bm_h">
			<h2>快速发帖</h2>
		</div>
		<div class="bm_c">
			<form id="fastpostform" name="fastpostform" action="frontGroupInfoController.do?save" method="post">    
				<div id="fastpostreturn" style="margin: -5px 0 5px"></div>
				<div class="pbt cl">
					<div class="ftid">
						<select name="themeId" id="themeId" width="80" selecti="0" >
							<c:forEach items="${themeListV}" var="themeValue">
								<option value="${themeValue.id}">${themeValue.themeName}</option>
							</c:forEach>
						</select>
					</div>

					<input type="text" id="title" name="title" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" tabindex="11" style="width: 25em">
					<span>还可输入 <strong id="checklen">80</strong> 个字符
					</span>
				</div>
				
				<input id="areaId" name="areaId" type="hidden" value="${articleGroupInfo.areaId}">
				<input id="groupId" name="groupId" type="hidden" value="${articleGroupInfo.id}">
				<div class="cl">
					<div class="tedt" style="width:100%;border:0px;margin-bottom: 10px;">
						<script type="text/plain" id="myEditor" name="content" style="width:100%;height:200px;">
						</script>
					</div>  
				</div>
				
				<p class="pnpost">
					<button id="save_acticle" name="save_acticle"  tabindex="13" type="submit" style="font-size:12px;font-weight: bold;color:white;background-color: #0090ee;height:30px;line-height: 30px;border:0px;">	<!--  onclick="saveArticle()" --> 
						<strong>发表帖子</strong>
					</button>
				</p>
			</form>
		</div>
	</div>



	<div style="clear: both"></div>
</div>


<!--foot -->
<%@include file="foot.jsp"%>

</body>
</html>
<script type="text/javascript">
//实例化编辑器
var um = UM.getEditor('myEditor');
um.addListener('blur',function(){
    $('#focush2').html('编辑器失去焦点了')
});
um.addListener('focus',function(){
    $('#focush2').html('')
});

</script>